﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using VM.Entity.EntityMap.User;

namespace VM.Entity.EntityDto.Invoice
{
    /// <summary>
    ///  i开具二手车销售统一发票才需要传
    /// </summary>
    [SugarTable("invoice_applysecondHandCarInfo")]
    public class invoiceApplysecondHandCarInfoDto
    {

        #region Model
        private int _id;
        private int? _parentid;
        private string _organizetype;
        private string _vehicletype;
        private string _brandmodel;
        private string _vehiclecode;
        private string _intactcernum;
        private string _licensenumber;
        private string _registercertno;
        private string _vehiclemanagementname;
        private string _sellername;
        private string _sellertaxnum;
        private string _selleraddress;
        private string _sellerphone;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int? parentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }
        /// <summary>
        /// 开票方类型 1：经营单位 2：拍卖单位 3：二手车市场 （只有传1-经营单位时，才支持 特定要素为33的 二手车发票反向开具）
        /// </summary>
        public string organizeType
        {
            set { _organizetype = value; }
            get { return _organizetype; }
        }
        /// <summary>
        /// 车辆类型,同明细中商品名称，开具机动车发票时明细有且仅有一行，商品名称为车辆类型且不能为空
        /// </summary>
        public string vehicleType
        {
            set { _vehicletype = value; }
            get { return _vehicletype; }
        }
        /// <summary>
        /// 厂牌型号
        /// </summary>
        public string brandModel
        {
            set { _brandmodel = value; }
            get { return _brandmodel; }
        }
        /// <summary>
        /// 车辆识别号码/车架号
        /// </summary>
        public string vehicleCode
        {
            set { _vehiclecode = value; }
            get { return _vehiclecode; }
        }
        /// <summary>
        /// 完税证明号码
        /// </summary>
        public string intactCerNum
        {
            set { _intactcernum = value; }
            get { return _intactcernum; }
        }
        /// <summary>
        /// 车牌照号
        /// </summary>
        public string licenseNumber
        {
            set { _licensenumber = value; }
            get { return _licensenumber; }
        }
        /// <summary>
        /// 登记证号
        /// </summary>
        public string registerCertNo
        {
            set { _registercertno = value; }
            get { return _registercertno; }
        }
        /// <summary>
        /// 转入地车管所名称
        /// </summary>
        public string vehicleManagementName
        {
            set { _vehiclemanagementname = value; }
            get { return _vehiclemanagementname; }
        }
        /// <summary>
        /// 卖方单位/个人名称（开票方类型为1时，必须与销方名称一致，若反向开具时则为对应自然人信息）
        /// </summary>
        public string sellerName
        {
            set { _sellername = value; }
            get { return _sellername; }
        }
        /// <summary>
        /// 卖方单位代码/身份证号码（开票方类型为1时，必须与销方税号一致，若反向开具时则为对应自然人信息）
        /// </summary>
        public string sellerTaxnum
        {
            set { _sellertaxnum = value; }
            get { return _sellertaxnum; }
        }
        /// <summary>
        /// 	卖方单位/个人地址（开票方类型为1时，必须与销方地址一致，若反向开具时则为对应自然人信息）
        /// </summary>
        public string sellerAddress
        {
            set { _selleraddress = value; }
            get { return _selleraddress; }
        }
        /// <summary>
        /// 卖方单位/个人电话（开票方类型为1时，必须与销方电话一致，若反向开具时则为对应自然人信息）
        /// </summary>
        public string sellerPhone
        {
            set { _sellerphone = value; }
            get { return _sellerphone; }
        }
        #endregion Model


    }
}
